package com.javaee.spring.chineseIdol;

import java.util.Collection;

public class SuperInstrumentalist implements Performer {
	private Collection<Instrument> instruments;
	public Collection<Instrument> getInstruments() {
		return instruments;
	}
	public void setInstruments(Collection<Instrument> instruments) {
		this.instruments = instruments;
	}
	@Override
	public void performer() throws PerformanceException {
		for (Instrument instrument : instruments) {
			instrument.play();
		}
	}

}
